package com.customer.model;

import java.io.Serializable;

public class BasicEntity implements Serializable 
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer id;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public boolean equals(Object obj)
	{
		boolean flag = false;
		if(obj instanceof BasicEntity)
		{
			if(((BasicEntity) obj).getId().intValue() == this.getId().intValue())
			{
				flag = true;
			}
		}
		return flag;
	}

	@Override
	public int hashCode() {
		return this.getId().hashCode();
	}

	@Override
	public String toString() {
		return "此对象ID为:"+this.getId();
	}
	
}
